package hong.jun.controller;


import hong.jun.fegin.SystemFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SystemController {
    @Autowired
    private SystemFeign systemFeign;

    @GetMapping(value = "system/{id}")
    public String landbyid(@PathVariable("id") long id) {
        String course = systemFeign.landbyid(id);
        return course;
    }
}
